                        <{if $hasLoggedIn == true && $loggedInUserType == "MEMBER"}>
                        <!-- navigator.tpl : form user -->
                        <div style="display: none;" class="signinup" id="dUserMenu">
                            <div class="popup-select">
                                <a name="" href="<{$APPLICATION_URL}>/User">Tài khoản của tôi</a>
                               	<span class="separation"></span>
                                <a name="" href="<{$APPLICATION_URL}>/User/Index/myorder">Đơn hàng của tôi</a>
                                <span class="separation"></span>
                                <a name="" href="<{$APPLICATION_URL}>/Browse/MyAccount/logout">Thoát</a>
                            </div>
                        </div>
                        <{/if}>
                        <div class="sub-nav-bg">
                        	
                        	<div class="select-city">
                            	<em>Chọn thành phố</em>                                
                                <h3 id="hCityName">Hồ Chí Minh</h3>
                                <div style="display: none;" class="select-box popup-select" id="dBoxCityRunDeal">
                                <{foreach from=$citiesEntity item=city name='city'}>
                                <{if $smarty.foreach.city.index > 0}>
                                	<span class="separation"></span>
                                <{/if}>
                                	<a name="" href="<{$APPLICATION_URL}>/Browse/Deals/Index/city/<{$city->id}>"><{$city->city_name}></a>
                                <{/foreach}>	
                                <!--  <span class="separation"></span>
                                	<a name="" href="<{$APPLICATION_URL}>/Browse/Deals/Index/city/2">Hà Nội</a>-->
                                	</div>
                                
                                <a class="arrow" name="" id="aSelectCity" href="javascript:void(0);"></a>
                            </div>
                        	
                        	
                            <ul id="ulSubTopMenu" class="sub-nav-inner">
                            	<li><a href="<{$APPLICATION_URL}>/Browse" <{if $categoryActice ==''}>class="active"<{/if}>><em>Top deals</em></a></li>
                                <{foreach from=$categoriesEntity item=cate}>
                                	<li><a <{if $categoryActice == $cate->id}>class="active"<{/if}> href="<{$APPLICATION_URL}>/Browse/Deals/Index/city/<{$citys}>/cat/<{$cate->id}>"><em><{$cate->name}></em></a></li>
                                <{/foreach}>
                             </ul>
                            <div id="divIcoView" class="ico-sub-nav">
                            	<a href="#"></a>
                                <a href="#"></a>
                            </div>
                            
                        </div>
<script type="text/javascript">        
<!--
$(document).ready(function() {
	// add Event cllick for aSelectCity to change city
	$('#aUserProfile').click(function(e){
		if($('#dUserMenu').css('display') == 'none'){
			$('#dUserMenu').show();
			this.addClass('profile_act');
		}else{
			$('#dUserMenu').hide();
		}
	});	
});
//-->
</script>             